/**
 * 绑定
 * law_vehicle_human_bind_record
 *
 */
function insertLawVehicleHumanBindRecord(vehicleHumanData) {

    const insertFields = [
        ['bind_id', vehicleHumanData.vehicleHumanBind],
        ['vehicle_info_id', vehicleHumanData.vehicleId],
        ['vehicle_license_number', `'${vehicleHumanData.vehicleLicenseNumber}'`],
        ['human_id', vehicleHumanData.humanId],
        ['human_name', `'${vehicleHumanData.humanName}'`],
        ['operator_human_id', 'USER_ID()'],
        ['operator_human_name', 'USER_NAME()'],
        ['operator_type_id', `'1'`],
        ['operator_type_name', `'绑定'`],
        ['operator_time', 'NOW()']
    ];

    const formattedFields = insertFields.map(([key, value]) => {
        return `'${key}',${value}`;
    });

    const law_vehicle_human_bind_record = "ds_tbl:t_cac31c58737b421c95fa4070f0e2d8c8";
    const insertSql = `INSERT('${law_vehicle_human_bind_record}', [${formattedFields.join(',')}])`;

    console.log(insertSql);

    api.EXEC_FORMULA(insertSql).then(res => {
        console.log(res)
    })
}
